#pragma once
#include <QtGui/QGraphicsView>
#include <QContextMenuEvent>
#include <QDataStream>
#include <QtCore/QMap>


class QtBox2DAbstractItem;
class QtImageDialog;

class QtBox2DView :
	public QGraphicsView
{
    Q_OBJECT
public:
	QtBox2DView ( QWidget * parent = 0 );
	QtBox2DView ( QGraphicsScene * scene, QWidget * parent = 0 );
	virtual ~QtBox2DView(void);
	
protected:
	virtual void resizeEvent ( QResizeEvent * event );

	virtual void contextMenuEvent ( QContextMenuEvent * event );
public slots:
	void showImageDlg();
signals:
	void mousePos(const QPoint&);
private:

	QMap<int,QIcon>       mImageIcons;
	QtImageDialog* mImageDialog;


};
